OBJS=http_requst.o protocol.o protocol_head.o
CPPINCLUDE:=../
CPPFLAGS=-g -Wall -I$(CPPINCLUDE)
CC=g++

.PHONY: all comm crypto clean
all:comm crypto $(OBJS)

comm:
	cd ../comm && $(MAKE)

crypto:
	cd ../crypto && $(MAKE)

$(OBJS): %.o: %.cpp
	$(CC) $(CPPFLAGS) -c $< -DPTHREADS -D__linux_

clean:
	cd ../comm && $(MAKE) clean
	cd ../crypto && $(MAKE) clean
	-rm *.o